﻿<UserControl x:Class="Gui.Controls.Recorder"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:vm="clr-namespace:Gui.ViewModels"
             mc:Ignorable="d" Width="280" Height="45">
    <UserControl.DataContext>
        <vm:RecorderViewModel />
    </UserControl.DataContext>
    <Grid>
        <Button Content="{Binding RecordLabel}" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top" Width="75" Command="{Binding RecordButtonClickCommand}" CommandParameter="{Binding FrameRecorder}" IsEnabled="{Binding ActButtonEnabled}"/>
        <Button Content="Play" HorizontalAlignment="Left" Margin="93,10,0,0" VerticalAlignment="Top" Width="75" Command="{Binding PlayButtonClickCommand}" CommandParameter="{Binding FramePlayer}" IsEnabled="{Binding ActButtonEnabled}"/>
        <Button Content="Stop" HorizontalAlignment="Left" Margin="186,10,0,0" VerticalAlignment="Top" Width="75" Command="{Binding StopCommand}" CommandParameter="{Binding StartedDevice}" IsEnabled="{Binding StopButtonEnabled}"/>

    </Grid>
</UserControl>
